//
//  EatLayer.h
//  IceCreamSundae
//
//  Created by luotianqiang1 on 16/5/26.
//
//

#ifndef EatLayer_hpp
#define EatLayer_hpp

#include "BaseStepLayer.h"
#include "ShadeSprite.h"
class EatLayer: public BaseStepLayer{
public:
    CREATE_SECENE(EatLayer);
protected:
    bool init();
    virtual void touchEnd(ui::Widget* widget);
    virtual void onEnterTransitionDidFinish();
     void onExitTransitionDidStart();
    void saveAbumle();
    void checkEnd();
    void playVoice();
    void caculteEat(float);
    void initFood();
protected:
    Vec2 _eatAgainPos;
    int voiceSound;
    bool isPlay;
    static const int eyeActionTag;
    bool isEatEnd,isDrinkEnd;
    Vector<KDS::ShadeSprite*> eats;
};
#endif /* EatLayer_hpp */
